<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://localhost/juanpi/Static/Home/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://localhost/juanpi/Static/Home/hdjs/hdjs.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://localhost/juanpi/Static/Home/hdjs/hdjs.css"/>
<link rel="stylesheet" href="http://localhost/juanpi/Static/Home/css/log_reg.css" />
<script type="text/javascript">
    $(function () {
        $('#loginForm').validate({
            username: {
                rule: {
                	required: true,
                    ajax:{url:"<?php echo U('Member/check_LOG_User');?>"}
                },
                error: {
                	required: '手机号不能为空',
                },
                success: '验证通过',
	            message: '请输入用户名或手机号'
            },
            password: {
                rule: {
                    required: true,
                    minlen: 8,
                    maxlen: 12
                },
                error: {
                    required: '密码不能为空',
                    minlen: '密码不能小于8位',
                    maxlen: '密码不能大于12位'
                },
                success: '验证通过',
	            message: '请输入密码(8~12位)'
            },
            code: {
                rule: {
                    required: true,
                    ajax:{url:"<?php echo U('Member/checkCode');?>"}
                },
                error: {
                    required: '密码不能为空'
                },
                success: '验证通过',
	            message: '请输入验证码'
            },
        })
        
        $(function(){
			//获得图片源地址
			var src = $('.code').attr('src');
			//点击的时候改变图片地址，并且保证每次不同
			$('.code,.huan').click(function(){
				$('.code').attr('src',src + '&rand=' + Math.random());
			})
		})
        
    });
</script>
<title>登录</title>
</head>

<body>
<!-- 头部开始 -->
<div id="header">
	<div id="top">
		<div class="left">
			<a href="http://localhost/juanpi/index.php"></a>
		</div>
		<div class="right"></div>
	</div>
</div>
<!-- 头部结束 -->

<!-- 主体开始 -->
<div id="login">
	<div class="top">
		<div class="top_l">
			<span class="olduser">老用户登录 </span>&nbsp;&nbsp;
		 尊敬的卷皮用户，欢迎您回来！
		</div>
		<div class="top_r">
			<span class="no">还没账号？</span>
		<a href="<?php echo U('Register/index');?>">立即去注册</a>
		</div>
	</div>
	<div class="left">
		<!-- 登录框开始 -->
		<form id="loginForm" action="" method="post">
			<div class="inp1"><p>账号：</p><input type="text" name="username" placeholder="请输入用户名或手机号！" /></div>
			<div class="inp1"><p>密码：</p><input type="password" name="password" placeholder="请输入密码！" /></div>
			<div class="inp2"><p>验证码：</p><input type="text" name="code" id="" /></div>
			<div class="yzm"><img class="code" src="<?php echo U('Member/code');?>"/><a class="huan" href="javascript:;">看不清，换一张</a></div>
			<div class="inp3">
				<input type="checkbox" name="auto" id="" checked="checked"/>
				<span>两周内免登陆</span>
				<a href="">忘记密码？</a>
			</div>
			<div class="inp4"><input type="submit" value="登录" /></div>
		</form>
		<!-- 登录框接结束 -->
		<!--<div class="friend">
			<div class="friend_l">
				合作网站账号登录<br />
				<a class="qq" href=""></a>
				<a class="wx" href=""></a>
				<a class="wb" href=""></a>
				<a class="tb" href=""></a>
			</div>
			<div class="friend_r">
				<a href="">手机快捷登录>></a>
			</div>
		</div>-->
	</div>
	<div class="right">
		<img src="http://localhost/juanpi/Static/Home/images/login-bj-ad.png" alt="" />
	</div>
</div>
<!-- 主体结束 -->


<div id="copy">
	武汉奇米网络科技有限公司 鄂ICP备10209250号 Copyright © 2010 - 2015 JuanPi.com All Rights Reserved
</div>
</body>
</html>
